home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
snack_attack.swf
/
scripts
/
DefineSprite_238
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
767b
|
44 lines
finalforce = eval("/:force") + eval("/:counterforce");
_rotation = _rotation + finalforce;
if("28" < _rotation)
{
if(safeDrop < "1")
{
tellTarget("safety")
{
gotoAndPlay(2);
}
call("trayarms/items/:right");
}
}
else if(_rotation < "-28")
{
if(safeDrop < "1")
{
tellTarget("safety")
{
gotoAndPlay(2);
}
call("trayarms/items/:left");
}
}
if("33" < _rotation)
{
_rotation = "33";
}
else if(_rotation < "-33")
{
_rotation = "-33";
}
tiltframe = int("50" - _rotation);
tellTarget("trayarms")
{
gotoAndStop(eval("../:tiltframe"));
}
tellTarget("../bar")
{
gotoAndStop(eval("../tray/:tiltframe"));
}
_yscale = "81";
_xscale = _yscale;